package Main;

import java.util.ArrayList;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Derp {
  public static ArrayList<Integer> sorted;
  
  public static void main(String args[]){
    int[] dataSet = {1}; //some herpderp dataset get from user?
    
    Thread Bead;
    Thread Bucket;
    ExecutorService es = Executors.newFixedThreadPool(2);
    Bead = new Thread(new BeadSort(dataSet));
    Bucket = new Thread(new BucketSort(dataSet));
    long startTime = System.currentTimeMillis();
    es.execute(Bead);
    es.execute(Bucket);
    es.shutdown();
    while (!es.isTerminated()) {
    }
    long endTime = System.currentTimeMillis();
      System.out.println(sorted);
      System.out.println("Total elapsed time in seconds is: "+ (endTime-startTime)/1000);
      System.out.println("Total elapsed time in milliseconds is: "+ (endTime-startTime));
      
  }
}
//Sean needs:
//given dataset
//num of buckets
//size of abacus
//original arrangment of beads
